home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD ROM Paradise Collection 4
/
CD ROM Paradise Collection 4 1995 Nov.iso
/
os2
/
zoc205.zip
/
INSTALL.FIL
/
SCRIPT
/
RXSAMPLE
/
MANUAL
/
IF3.RX
< prev
next >
Wrap
Text File
|
1994-11-01
|
693b
|
31 lines
/* REXX sample about decisions */
'TIMEOUT 60'
/* Wait for 'Name?' - check for success and report error */
'WAIT "Name?"'
IF RC=0 THEN /* outer IF */
DO /* received 'Name?' */
'SEND "Joe User^M"'
/* Wait for 'Password?' - check for success and report error */
'WAIT "Password?"'
IF RC=0 THEN /* inner IF */
DO /* received 'Password?' */
'SEND "mypassword^M"'
END
ELSE /* inner IF */
DO /* Ouch, 'Password?' was not received */
'WRITELN "ERROR (Password)!!"'
'HANGUP'
END /* inner IF */
END
ELSE /* outer IF */
DO /* Ouch, 'Name?' was not received */
'WRITELN "ERROR (Name)!!"'
'HANGUP'
END /* outer IF */